#!/bin/bash

echo "need a way to specify the output directory and that it exists"
echo "see ssh script for what needs to be done, and what needs adding"
echo "manual script"

ipaddress=$1
username=root

ssh ${username}@${ipaddress} "rpm -qa > /tmp/${ipaddress}.packages.123456789"
scp ${username}@${ipaddress}:/tmp/${ipaddress}.packages.123456789 /job
#ssh ${username}@${ipaddress} "rm -rf /tmp/${ipaddress}.packages.123456789"
